#pragma once
#include "MovingObject.h"
#include "../SGD Wrappers/SGD_Handle.h"	
#include <string>
class EnemyUnit;

class Bullet : public MovingObject
{
public:
	Bullet() = default;
	virtual ~Bullet();

	virtual void Update(float elapsedTime) override;
	//virtual void Render(void) override;
	virtual void HandleCollision(const IBase* pOther)	override;

	virtual int	GetType(void) const override { return OBJ_BULLET; }

	//virtual SGD::Rectangle GetRect(void) const override;
	EnemyUnit* GetOwner(void) const { return m_pOwner; }

	//Mutators
	void SetOwner(EnemyUnit* _owner);
	void SetAnimation(std::string animName);
	bool IsDead();

private:

	EnemyUnit* m_pOwner = nullptr;

	friend class BaseBehavior;


};

